10. Hand Physics and Colliders

Hand Physics and Colliders

QUESTION:

In our Grab and Throw implementation, we used triggers, which pass through objects without affecting them. If we wanted to be able to push and slap objects with our hands, but still have the option to grab them, how could we accomplish this?

ANSWER:

There are multiple ways this could be achieved, but here are a couple easy ones:

  1. Give the hands a collider that is not a trigger, then place the trigger collider either at the edge of the hands, or make the trigger slightly bigger than the physical collider
  2. Make it so squeezing the trigger with no objects in range turns the hand’s trigger collider into a normal collider, then back when released (some games use this for a punching mechanic)

Project Preview:
Collectible items disappear when the ball collides with them. Goal goes to next level when all collectibles are collected and goal is hit.

Capstone Preview:

Note: The capstone requires completing a series of "Achievements" and getting a total of 500 points in each section (Fundamentals, Completeness, and Challenges).

Physics achievement